import request from "@/utils/request";
// 阿米巴预算 

// 获取预算单元（关闭方式的列表） /tool/budgetPeriod/list
export const getBudgetPeriodListApi = (params) => {
    return request({
        url: `/tool/budgetPeriod/list`,
        method: "get",
        params
    });
};

// 修改预算单元的关闭方式 /tool/budgetPeriod/edit
export const editBudgetPeriodApi = (data) => {
    return request({
        url: `/tool/budgetPeriod/edit`,
        method: "put",
        data
    });
};

// 当前预算周期是否开启 /tool/budgetPeriod/isOpen
export const getBudgetPeriodIsOpenApi = (params) => {
    return request({
        url: `/tool/budgetPeriod/isOpen`,
        method: "get",
        params
    });
};

//查询银行卡  /base/bankcard/list
export const getBankListApi = (params) => {
    return request({
        url: `/base/bankcard/list`,
        method: "get",
        params
    });
};